<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:ui="http://java.sun.com/jsf/facelets"

      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <body>
        <ui:composition>

            <br />
            <h:form>
                <c:if test="#{securityScope.userInRole['CLIENT']}">
                    
                    <h:commandLink value="Withdraw Money" action="#{transactionBean.Withdraw}" />
                    <br />
                    <h:commandLink value="Deposit Money" action="#{transactionBean.Deposit}" />
                    <br />
                    <h:commandLink value="Transfer Money" action="#{transactionBean.Transfer}" />
                    <br />
                    <h:commandLink value="Pay Bills" action="#{transactionBean.PayBills}" />
                    <br />
                    <h:commandLink value="List Transactions History" action="#{transactionBean.TransactionsHistory}" />
                    <br />
                    <h:commandLink value="View Account Balance" action="#{accountBean.viewAccounts}" />
                    <br />
                </c:if>
                <c:if test="#{securityScope.userInRole['ADMIN']}">
                <h:commandLink value="List New Clients" action="#{clientBean.listNewClients}" />
                <br />
                <h:commandLink value="List Deposit Transactions" action="#{transactionBean.listTransactions}" />
                <br />
                </c:if>
                <br />
                <h:commandLink value="Logout" action="#{authenticationBean.logout}" />

            </h:form>

        </ui:composition>
    </body>
</html>


